package demo02;


import java.util.ArrayList;
import java.util.Scanner;

public class Test01Extend {
    public static void main(String[] args) {
        QunZhu qunZhu=new QunZhu("张三",100);
        Member one=new Member("群员一",0);
        Member two=new Member("群员二",0);
        Member three=new Member("群员三",0);
        System.out.println("请输入红包的金额");
        Scanner sc=new Scanner(System.in);
        double Money = sc.nextDouble();
        System.out.println("请输入红包的份数");
        int Count=sc.nextInt();
        ArrayList <Double>arrayList= qunZhu.sendRedPacket(Money,Count);
        one.OpenRedPocket(arrayList);
        two.OpenRedPocket(arrayList);
        three.OpenRedPocket(arrayList);
        qunZhu.show();
        one.show();
        two.show();
        three.show();
    }
}
